package br.com.ep.generico.controller;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;

import br.com.ep.festa.service.UserService;
import br.com.ep.generico.core.GenericManageBean;
import br.com.ep.generico.entity.User;

@ManagedBean(name = "userBean")
@ViewScoped
public class UserBean extends GenericManageBean<User>{

	private static final long serialVersionUID = 1L;
	
	@ManagedProperty("#{userService}")
	private UserService userService;

	public UserService getUserService() {
		return userService;
	}

	public void setUserService(UserService userService) {
		this.userService = userService;
		this.setService(userService);
	}

		
}
